package com.allianz.webapps.controllers;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.allianz.frame.utils.PropertiesUtil;

//http://localhost:8080/pad_marketing/main/confirmation.action
@Controller
@RequestMapping(value="main")
public class BankAuthController {
	

	/**
	 * 银行卡支付
	 */
	@RequestMapping(value="bankAuth")
	public ModelAndView confirmation(HttpServletRequest request,HttpServletResponse response){
		ModelAndView mav=new ModelAndView();
		mav.setViewName("views/page/bankAuth");
		return mav;
	}
	
	@RequestMapping(value="bankAuthInit")
	@ResponseBody
	public Map<String, String> editPayInit(HttpServletRequest request,HttpServletResponse response){
		
		Map<String, String> map = new HashMap<String,String>();
		String pdfPortal = PropertiesUtil.getProperty("pdfPortal");
		map.put("pdfPortal", pdfPortal);
		return map;
	}

}
